<script setup>
import { defineEmits } from 'vue';
const emits = defineEmits(['sendMenu'])
function send(date) {
    emits('sendMenu', date)
}


</script>

<template>
  <div>
    <h2>分类导航</h2>
    <ul>
        <li @click="send('https://pic33.photophoto.cn/20141107/0032018014852822_b.jpg')">食品</li>
        <li @click="send('https://p2.itc.cn/images01/20230221/b3c9f14b7bbc49acbb39855eb94f82a6.jpeg')">酒水</li>
        <li @click="send('https://www.cuji.net/uploads/allimg/230918/1409133504-0.jpg')">生活</li>
        <li @click="send('https://sghimages.shobserver.com/img/catch/2021/09/03/5dcbf473-aab4-470a-b5fa-512ac9d38c57.jpg')">电器</li>
        <li @click="send('https://gd-hbimg.huaban.com/ff60a400a92b809489aa9270523c9a2602d839964477d-0WaqWn_fw658webp')">服饰</li>
    </ul>
  </div>
</template>

<style scoped>

</style>
